import config
import wx
icons = None

def load_icons():
    global icons
    wx.InitAllImageHandlers()

    icons = wx.IconBundle()
    for item in "16 32 48 64 128".split():
        path = config.pic_path
        icon = wx.Image("%(path)sconti-%(item)sx%(item)s.png" % locals())
        if icon.IsOk():
            bmp = wx.BitmapFromImage(icon)
            icons.AddIcon(wx.IconFromBitmap(bmp))

